Skip to content

REF/TYP: avoid need for NDFrameTb #51969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

jbrockmendel
Copy link
Member

We have a method align_as_utc that implemented at the module-level instead of as a method, requiring some annotation gymnastics. This refactors so that it is only used in one place instead of two, then inlines the function inside align.

Copy link
Member

@twoertwein twoertwein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typing changes look good to me

@mroeschke mroeschke added Refactor Internal refactoring of code Typing type annotations, mypy/pyright type checking labels Mar 15, 2023
@mroeschke mroeschke added this to the 2.1 milestone Mar 15, 2023
@mroeschke mroeschke merged commit d1c43dc into pandas-dev:main Mar 15, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-align_as_utc branch March 15, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants